import { defHttp } from '@/utils/http/axios';

// 获取教师列表
export const getTeacherListApi = () =>
  defHttp.get({
    url: '/face_recognition/duty/get_teachers',
  });

// 获取值班列表
export const getDutyListApi = (params: any) =>
  defHttp.get({
    url: '/face_recognition/duty/get_duty_schedules',
    params,
  });

// 新增值班记录
export const addDutyApi = (data: any) =>
  defHttp.post({
    url: '/face_recognition/duty/add_duty_schedule',
    data,
  });

// 更新值班记录
export const putDutyApi = (data: any) =>
  defHttp.put({
    url: '/face_recognition/duty/update_duty_schedule/' + data.DutyScheduleID,
    data,
  });

// 删除值班记录
export const deleteDutyApi = (DutyScheduleID: any) =>
  defHttp.delete({
    url: '/face_recognition/duty/delete_duty_schedule/' + DutyScheduleID,
  });
